package com.hxd.mall.injector.modules

import android.app.Application
import android.content.Context
import dagger.Binds
import dagger.Module

/**
 * app module 对component提供实例
 *
 * Created by qishuai on 2018/7/29.
 */
/*@Module
class ApplicationModule(application: HxdApplication) {
    private val mApplication: HxdApplication = application

    @Singleton
    @Provides
    fun provideApplicationContext(): Context {
        return mApplication.application
    }
}*/

@Module
abstract class ApplicationModule {
    //expose Application as an injectable context
    @Binds
    abstract fun bindContext(application: Application): Context
}